package cn.ctyun.player.app;

import android.app.Application;
import android.os.Environment;

import com.tencent.bugly.crashreport.CrashReport;

import java.io.File;

import cn.ctyun.videoplayer.util.CTYunLogUtils;

/**
 * app
 * Created by Devlin_n on 2017/4/22.
 */

public class MyApplication extends Application{

    private static MyApplication instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;

        CrashReport.initCrashReport(getApplicationContext(), "d0f648c62f", true);

        File esdf = Environment.getExternalStorageDirectory();
        CTYunLogUtils.setLogPath(esdf.getAbsolutePath() + "/CTYunLiveLog");
    }

    public static MyApplication getInstance() {
        return instance;
    }
}
